package com.hust360.percent.pojo;

import java.io.Serializable;

/**
 * 
 * 店铺的实体类
 */
public class Shop implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5546555135289306148L;

	/**
	 * 本地数据库中表的名字
	 */
	public static final String TABLE_NAME = "Shop";

	/**
	 * 店铺的id
	 */
	Long shopId;

	public static final String SHOPID_COLUMN = "shopId";

	/**
	 * 店铺的名称
	 **/
	String shopName;

	public static final String SHOPNAME_COLUMN = "shopName";

	/**
	 * 店铺的品牌
	 **/
	String brand;

	public static final String BRAND_COLUMN = "brand";

	/**
	 * 店铺地址
	 */
	String address;

	public static final String ADDRESS_COLUMN = "address";

	/**
	 * 店铺平均分
	 */
	Float totalRate;

	public static final String TOTAL_RATE_COLUMN = "totalRate";

	/**
	 * 店铺的电话号码
	 */
	String telephone;

	public static final String TELEPHONE_COLUMN = "telephone";

	/**
	 * 图片logo的名字
	 */
	private String logoPath;

	public static final String LOGO_PATH_COLUMN = "logoPath";

	/**
	 * 地点信息纬度
	 */
	private Double longitude;

	public static final String LONGITUDE_COLUMN = "longitude";

	/**
	 * 地点信息纬度
	 */
	private Double latitude;
	
	/**
	 * 店铺所在城市
	 */
	private Long cityId;
	
	public static final String CITY_ID = "cityId";

	public Shop() {
		shopId = null;
		totalRate = null;
		longitude = null;
		latitude = null;
	}

	public static final String LATITUDE_COLUMN = "latitude";

	public Double getLongitude() {
		return longitude;
	}

	public void setLongitude(Double longitude) {
		this.longitude = longitude;
	}

	public Double getLatitude() {
		return latitude;
	}

	public void setLatitude(Double latitude) {
		this.latitude = latitude;
	}

	/**
	 * 列的名称的String数组
	 */
	public static final String[] COLUMNS = { SHOPID_COLUMN, ADDRESS_COLUMN,
			BRAND_COLUMN, LOGO_PATH_COLUMN, SHOPNAME_COLUMN, TELEPHONE_COLUMN,
			TOTAL_RATE_COLUMN, LONGITUDE_COLUMN, LATITUDE_COLUMN, CITY_ID };

	/**
	 * 
	 * @return 店铺的id
	 */
	public Long getShopId() {
		return shopId;
	}

	/**
	 * 设置店铺的id
	 * 
	 * @param shopId
	 */
	public void setShopId(Long shopId) {
		this.shopId = shopId;
	}

	/**
	 * 获得店铺的名称
	 * 
	 * @return 店铺的名称
	 */
	public String getShopName() {
		return shopName;
	}

	/**
	 * 设置店铺的名称
	 * 
	 * @param shopName
	 */
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	/**
	 * 获得店铺品牌的名称
	 * 
	 * @return
	 */
	public String getBrand() {
		return brand;
	}

	/**
	 * 是指店铺的品牌名称
	 */
	public void setBrand(String brand) {
		this.brand = brand;
	}

	/**
	 * 获得店铺的地址
	 */
	public String getAddress() {
		return address;
	}

	/**
	 * 设置店铺的地址
	 * 
	 * @param address
	 */
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * 获得店铺的总评分
	 * 
	 * @return
	 */
	public Float getTotalRate() {
		return totalRate;
	}

	/** 设置店铺的总评分 */
	public void setTotalRate(Float totalRate) {
		this.totalRate = totalRate;
	}

	/**
	 * 获得店铺的电话号码
	 * 
	 * @return
	 */
	public String getTelephone() {
		return telephone;
	}

	/**
	 * 设置店铺的电话号码
	 * 
	 * @param telephone
	 */
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	/**
	 * 获取logo的图片的名字
	 * 
	 * @return
	 */
	public String getLogoPath() {
		return logoPath;
	}

	/**
	 * 设置logo图片的名字
	 * 
	 * @param logoPath
	 */
	public void setLogoPath(String logoPath) {
		this.logoPath = logoPath;
	}

	public Long getCityId() {
		return cityId;
	}

	public void setCityId(Long cityId) {
		this.cityId = cityId;
	}
	
}
